<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/17 0017
 * Time: 上午 9:49
 */

?>


<style type="text/css">

    body {
        margin-bottom: 0;
    }

    .box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-content: space-evenly;
        width: 100%;
        /*margin-top: 10px;*/
        /*margin-bottom: 10px;*/
    }

    .box-item {
        width: 49%;
        padding: 5px;
    }

    .box-item .player {
        background-color: white;
    }

    .box .box-item:nth-child(2n) {
        padding-right: 0;
    }

    .box .box-item:nth-child(2n+1) {
        padding-left: 0;
    }

    .down {
        width: 48px;
    }

    .ias-noneleft {
        width: 49%;
    }


</style>

<?= \frontend\widgets\Swiper::widget(['model' => $activity]) ?>

<div class="container-fluid">

    <?= \frontend\widgets\PlayerSearch::widget(['activityModel' => $activity]) ?>

    <?php
    echo \yii\widgets\ListView::widget([
        'dataProvider' => $dataProvider,
        'options' => ['class' => 'list-view box'],
        // 'layout' => "{items}\n{pager}",
        'itemOptions' => ['class' => 'item box-item'],
        'itemView' => '_player_item',
        'summary' => '',
        'pager' => [
            'class' => \common\widgets\Y2sp\ScrollPager::className(),
            'triggerTemplate' => '<div class="ias-spinner btn btn-block" style="text-align: center;"><img class="down" src="/images/common/down.png"/></div>',
            'noneLeftText' => '',
        ]
    ]);

    ?>
</div>
